<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow-IPC: shm/classic/pool_arena.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow-IPC<span id="projectnumber">&#160;1.0.2</span>
   </div>
   <div id="projectbrief">Flow-IPC project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ddb0f12d0722949f40b2818843b69123.html">shm</a></li><li class="navelem"><a class="el" href="dir_d54aa94669c58d37a530f384e5a8d959.html">classic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">pool_arena.cpp</div></div>
</div><!--header-->
<div class="contents">
<a href="pool__arena_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/* Flow-IPC: Shared Memory</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * Copyright 2023 Akamai Technologies, Inc.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> * &quot;License&quot;); you may not use this file except in</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * compliance with the License.  You may obtain a copy</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> *   https://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> * Unless required by applicable law or agreed to in</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> * writing, software distributed under the License is</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> * distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> * CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> * See the License for the specific language governing</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> * permissions and limitations under the License. */</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"></span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment">/// @file</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"></span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &quot;<a class="code" href="pool__arena_8hpp.html">ipc/shm/classic/pool_arena.hpp</a>&quot;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &quot;<a class="code" href="ipc__shm_2src_2ipc_2shm_2classic_2error_8hpp.html">ipc/shm/classic/error.hpp</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &quot;<a class="code" href="util_8hpp.html">ipc/util/detail/util.hpp</a>&quot;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#include &quot;<a class="code" href="detail_2util__fwd_8hpp.html">ipc/util/detail/util_fwd.hpp</a>&quot;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &lt;boost/move/make_unique.hpp&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceipc_1_1shm_1_1classic.html">ipc::shm::classic</a></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>{</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Mode_tag&gt;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#ac6e915353952b74b4c4aa38dc95f8c51">   30</a></span><a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">Pool_arena::Pool_arena</a>(Mode_tag mode_tag, flow::log::Logger* logger_ptr,</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>                       <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1util_1_1Shared__name.html">Shared_name</a>&amp; pool_name_arg, <span class="keywordtype">size_t</span> pool_sz,</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>                       <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceipc_1_1util.html#a1b398ae730d1e6040687cb2397115152">util::Permissions</a>&amp; perms, <a class="code hl_typedef" href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">Error_code</a>* err_code) :</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>  flow::log::Log_context(logger_ptr, <a class="code hl_enumeration" href="namespaceipc.html#a4ccdeed058222c635745a4dc830e99f7">Log_component</a>::S_TRANSPORT),</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>  m_pool_name(pool_name_arg)</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>  <span class="keyword">using </span>boost::io::ios_all_saver;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>  <span class="keyword">using </span>boost::movelib::make_unique;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>  assert(pool_sz &gt;= <span class="keyword">sizeof</span>(<span class="keywordtype">void</span>*));</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>  <span class="keyword">static_assert</span>(std::is_same_v&lt;Mode_tag, util::Create_only&gt; || std::is_same_v&lt;Mode_tag, util::Open_or_create&gt;,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>                <span class="stringliteral">&quot;Can only delegate to this ctor with Mode_tag = Create_only or Open_or_create.&quot;</span>);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>  <span class="keyword">constexpr</span> <span class="keywordtype">char</span> <span class="keyword">const</span> * MODE_STR = std::is_same_v&lt;Mode_tag, util::Create_only&gt;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>                                      ? <span class="stringliteral">&quot;create-only&quot;</span> : <span class="stringliteral">&quot;open-or-create&quot;</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>  <span class="keywordflow">if</span> (get_logger()-&gt;should_log(flow::log::Sev::S_INFO, get_log_component()))</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>  {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    ios_all_saver saver(*(get_logger()-&gt;this_thread_ostream())); <span class="comment">// Revert std::oct/etc. soon.</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    FLOW_LOG_INFO_WITHOUT_CHECKING</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>      (<span class="stringliteral">&quot;SHM-classic pool [&quot;</span> &lt;&lt; *<span class="keyword">this</span> &lt;&lt; <span class="stringliteral">&quot;]: Constructing heap handle to heap/pool at name [&quot;</span> &lt;&lt; <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a> &lt;&lt; <span class="stringliteral">&quot;] in &quot;</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>       <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; MODE_STR &lt;&lt; <span class="stringliteral">&quot;] mode; pool size [&quot;</span> &lt;&lt; flow::util::ceil_div(pool_sz, <span class="keywordtype">size_t</span>(1024 * 1024)) &lt;&lt; <span class="stringliteral">&quot;Mi]; &quot;</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>       <span class="stringliteral">&quot;perms = [&quot;</span> &lt;&lt; std::setfill(<span class="charliteral">&#39;0&#39;</span>) &lt;&lt; std::setw(4) &lt;&lt; std::oct &lt;&lt; perms.get_permissions() &lt;&lt; <span class="stringliteral">&quot;].&quot;</span>);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>  }</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>  <span class="comment">/* m_pool is null.  Try to create/create-or-open it; it may throw exception; this will do the right thing including</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="comment">   * leaving m_pool at null, as promised, on any error.  Note we might throw exception because of this call. */</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>  <a class="code hl_function" href="namespaceipc_1_1util.html#abd43da87aa17031604c7906757c07d46">util::op_with_possible_bipc_exception</a></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    (get_logger(), err_code, <a class="code hl_enumvalue" href="namespaceipc_1_1shm_1_1classic_1_1error.html#ab01754e54c67d287addcf7a5c6ce999ba5640941b8dbafc13ad6f6ef8dec1937f">error::Code::S_SHM_BIPC_MISC_LIBRARY_ERROR</a>, <span class="stringliteral">&quot;Pool_arena(): Pool()&quot;</span>, [&amp;]()</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>  {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a> = make_unique&lt;Pool&gt;(mode_tag, <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a>.<a class="code hl_function" href="classipc_1_1util_1_1Shared__name.html#a0bccc73c9c5b4f3b784a1e57cdc5c910">native_str</a>(), pool_sz, <span class="keyword">nullptr</span>, perms);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>  });</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>} <span class="comment">// Pool_arena::Pool_arena()</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">   63</a></span><a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">Pool_arena::Pool_arena</a>(flow::log::Logger* logger_ptr,</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>                       <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1util_1_1Shared__name.html">Shared_name</a>&amp; pool_name_arg, <a class="code hl_typedef" href="namespaceipc_1_1util.html#a9d84c2bab504e6de32b20c77ca9723a2">util::Create_only</a>, <span class="keywordtype">size_t</span> pool_sz,</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>                       <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceipc_1_1util.html#a1b398ae730d1e6040687cb2397115152">util::Permissions</a>&amp; perms, <a class="code hl_typedef" href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">Error_code</a>* err_code) :</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>  <a class="code hl_class" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html">Pool_arena</a>(util::<a class="code hl_variable" href="namespaceipc_1_1util.html#ad1ca1cab79a35e1eb1c47037a0973cd8">CREATE_ONLY</a>, logger_ptr, pool_name_arg, pool_sz, perms, err_code)</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>{</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>  <span class="comment">// Cool.</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>}</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#acb6ac11bcde9076bd121a0c61ef63159">   71</a></span><a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">Pool_arena::Pool_arena</a>(flow::log::Logger* logger_ptr,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>                       <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1util_1_1Shared__name.html">Shared_name</a>&amp; pool_name_arg, <a class="code hl_typedef" href="namespaceipc_1_1util.html#a9571de958538d7a4a8649bbfecfac0b9">util::Open_or_create</a>, <span class="keywordtype">size_t</span> pool_sz,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>                       <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceipc_1_1util.html#a1b398ae730d1e6040687cb2397115152">util::Permissions</a>&amp; perms, <a class="code hl_typedef" href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">Error_code</a>* err_code) :</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>  <a class="code hl_class" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html">Pool_arena</a>(util::<a class="code hl_variable" href="namespaceipc_1_1util.html#a5664539b3d75d6d10cdfebf6eac5382d">OPEN_OR_CREATE</a>, logger_ptr, pool_name_arg, pool_sz, perms, err_code)</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>{</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>  <span class="comment">// Cool.</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>}</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a49b84488d246ea5189f15d3f020e4d71">   79</a></span><a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">Pool_arena::Pool_arena</a>(flow::log::Logger* logger_ptr,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>                       <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1util_1_1Shared__name.html">Shared_name</a>&amp; pool_name_arg, <a class="code hl_typedef" href="namespaceipc_1_1util.html#a3e03491b5b2b5fac26551a220946d6e5">util::Open_only</a>, <span class="keywordtype">bool</span> read_only, <a class="code hl_typedef" href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">Error_code</a>* err_code) :</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>  flow::log::Log_context(logger_ptr, <a class="code hl_enumeration" href="namespaceipc.html#a4ccdeed058222c635745a4dc830e99f7">Log_component</a>::S_TRANSPORT),</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>  m_pool_name(pool_name_arg)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>{</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>  <span class="keyword">using </span>boost::movelib::make_unique;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>  FLOW_LOG_INFO(<span class="stringliteral">&quot;SHM-classic pool [&quot;</span> &lt;&lt; *<span class="keyword">this</span> &lt;&lt; <span class="stringliteral">&quot;]: Constructing heap handle to heap/pool at name &quot;</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>                <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a> &lt;&lt; <span class="stringliteral">&quot;] in open-only mode; paged read-only? = [&quot;</span> &lt;&lt; read_only &lt;&lt; <span class="stringliteral">&quot;].&quot;</span>);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>  <a class="code hl_function" href="namespaceipc_1_1util.html#abd43da87aa17031604c7906757c07d46">util::op_with_possible_bipc_exception</a>(get_logger(), err_code, <a class="code hl_enumvalue" href="namespaceipc_1_1shm_1_1classic_1_1error.html#ab01754e54c67d287addcf7a5c6ce999ba5640941b8dbafc13ad6f6ef8dec1937f">error::Code::S_SHM_BIPC_MISC_LIBRARY_ERROR</a>,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>                                        <span class="stringliteral">&quot;Pool_arena(OPEN_ONLY): Pool()&quot;</span>, [&amp;]()</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>  {</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a> = read_only ? make_unique&lt;Pool&gt;(::ipc::bipc::open_read_only, <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a>.<a class="code hl_function" href="classipc_1_1util_1_1Shared__name.html#a0bccc73c9c5b4f3b784a1e57cdc5c910">native_str</a>())</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>                       : make_unique&lt;Pool&gt;(<a class="code hl_variable" href="namespaceipc_1_1util.html#a6a3a6ec85242d073df96978c63464078">util::OPEN_ONLY</a>, <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a>.<a class="code hl_function" href="classipc_1_1util_1_1Shared__name.html#a0bccc73c9c5b4f3b784a1e57cdc5c910">native_str</a>());</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>  });</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>} <span class="comment">// Pool_arena::Pool_arena()</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aca8bf9fe738df70fd502111330089c90">   97</a></span><a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aca8bf9fe738df70fd502111330089c90">Pool_arena::~Pool_arena</a>()</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>{</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>  FLOW_LOG_INFO(<span class="stringliteral">&quot;SHM-classic pool [&quot;</span> &lt;&lt; *<span class="keyword">this</span> &lt;&lt; <span class="stringliteral">&quot;]: Closing handle.&quot;</span>);</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>}</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a9da3a100a0b7199644edbadacc9083c9">  102</a></span><span class="keywordtype">void</span>* <a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a9da3a100a0b7199644edbadacc9083c9">Pool_arena::allocate</a>(<span class="keywordtype">size_t</span> n)</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>{</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>  assert((n != 0) &amp;&amp; <span class="stringliteral">&quot;Please do not allocate(0).&quot;</span>);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>  <span class="keywordflow">if</span> (!<a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>)</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>  {</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>  }</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>  <span class="comment">// else</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>  <span class="keywordflow">if</span> (get_logger()-&gt;should_log(flow::log::Sev::S_DATA, get_log_component()))</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>  {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <span class="keyword">const</span> <span class="keyword">auto</span> total = <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;get_size();</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    <span class="keyword">const</span> <span class="keyword">auto</span> prev_free = <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;get_free_memory();</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>    <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;allocate(n); <span class="comment">// Can throw (hence we can throw as advertised).</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    <span class="keyword">const</span> <span class="keyword">auto</span> now_free  = <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;get_free_memory();</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    assert(total == <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;get_size());</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    FLOW_LOG_DATA_WITHOUT_CHECKING(<span class="stringliteral">&quot;SHM-classic pool [&quot;</span> &lt;&lt; *<span class="keyword">this</span> &lt;&lt; <span class="stringliteral">&quot;]: SHM-alloc-ed user buffer sized [&quot;</span> &lt;&lt; n &lt;&lt; <span class="stringliteral">&quot;]; &quot;</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>                                   <span class="stringliteral">&quot;bipc alloc-algo reports free space changed &quot;</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>                                   <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; prev_free &lt;&lt; <span class="stringliteral">&quot;] (used [&quot;</span> &lt;&lt; (total - prev_free) &lt;&lt; <span class="stringliteral">&quot;]) =&gt; &quot;</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>                                   <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; now_free &lt;&lt; <span class="stringliteral">&quot;] (used [&quot;</span> &lt;&lt; (total - now_free) &lt;&lt; <span class="stringliteral">&quot;]); &quot;</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>                                   <span class="stringliteral">&quot;raw delta [&quot;</span> &lt;&lt; (prev_free - now_free) &lt;&lt; <span class="stringliteral">&quot;].&quot;</span>);</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>  }</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>  <span class="comment">// else</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>  <span class="keywordflow">return</span> <a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">m_pool</a>-&gt;allocate(n); <span class="comment">// Can throw (hence we can throw as advertised).</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>} <span class="comment">// Pool_arena::allocate()</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a394973b7cfb67b67113043810804337d">  132</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a394973b7cfb67b67113043810804337d">Pool_arena::deallocate</a>(<span class="keywordtype">void</span>* buf_not_null) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>{</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>  assert(buf_not_null &amp;&amp; <span class="stringliteral">&quot;Please do not deallocate(nullptr).&quot;</span>);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>  <span class="keywordflow">if</span> (!m_pool)</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>  {</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>  }</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>  <span class="comment">// else</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>  <span class="keywordflow">if</span> (get_logger()-&gt;should_log(flow::log::Sev::S_DATA, get_log_component()))</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>  {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>    <span class="keyword">const</span> <span class="keyword">auto</span> total = m_pool-&gt;get_size();</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    <span class="keyword">const</span> <span class="keyword">auto</span> prev_free = m_pool-&gt;get_free_memory();</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    m_pool-&gt;deallocate(buf_not_null); <span class="comment">// Does not throw.</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>    <span class="keyword">const</span> <span class="keyword">auto</span> now_free  = m_pool-&gt;get_free_memory();</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>    assert(total == m_pool-&gt;get_size());</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    FLOW_LOG_DATA_WITHOUT_CHECKING(<span class="stringliteral">&quot;SHM-classic pool [&quot;</span> &lt;&lt; *<span class="keyword">this</span> &lt;&lt; <span class="stringliteral">&quot;]: SHM-dealloc-ed user buffer (size unknown) &quot;</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>                                   <span class="stringliteral">&quot;bipc alloc-algo reports free space changed &quot;</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>                                   <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; prev_free &lt;&lt; <span class="stringliteral">&quot;] (used [&quot;</span> &lt;&lt; (total - prev_free) &lt;&lt; <span class="stringliteral">&quot;]) =&gt; &quot;</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>                                   <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; now_free &lt;&lt; <span class="stringliteral">&quot;] (used [&quot;</span> &lt;&lt; (total - now_free) &lt;&lt; <span class="stringliteral">&quot;]); &quot;</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>                                   <span class="stringliteral">&quot;raw delta [&quot;</span> &lt;&lt; (now_free - prev_free) &lt;&lt; <span class="stringliteral">&quot;].&quot;</span>);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>  }</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>  <span class="keywordflow">else</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>  {</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>    m_pool-&gt;deallocate(buf_not_null);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>  }</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>} <span class="comment">// Pool_arena::deallocate()</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aff2327ce7339c1c732ddd4fcd4861ee4">  164</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aff2327ce7339c1c732ddd4fcd4861ee4">Pool_arena::remove_persistent</a>(flow::log::Logger* logger_ptr, <span class="comment">// Static.</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>                                   <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1util_1_1Shared__name.html">Shared_name</a>&amp; pool_name, <a class="code hl_typedef" href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">Error_code</a>* err_code)</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>{</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>  <a class="code hl_function" href="namespaceipc_1_1util.html#a1cdc0a8d761170faa844c49d37c522ff">util::remove_persistent_shm_pool</a>(logger_ptr, pool_name, err_code);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>  <span class="comment">// (See that guy&#39;s doc header for why we didn&#39;t just do what&#39;s necessary right in here.)</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>}</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span> </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a4abe6573298da49d0914dd068a086f2c">  171</a></span>std::ostream&amp; <a class="code hl_function" href="namespaceipc_1_1shm_1_1classic.html#a6df4cc12979524345f2bc6f98ad926f4">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code hl_class" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html">Pool_arena</a>&amp; val)</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>{</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>  <span class="keywordflow">return</span> os &lt;&lt; <span class="charliteral">&#39;@&#39;</span> &lt;&lt; &amp;val &lt;&lt; <span class="stringliteral">&quot; =&gt; sh_name[&quot;</span> &lt;&lt; val.<a class="code hl_variable" href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">m_pool_name</a> &lt;&lt; <span class="charliteral">&#39;]&#39;</span>;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>}</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>} <span class="comment">// namespace ipc::shm::classic</span></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html">ipc::shm::classic::Pool_arena</a></div><div class="ttdoc">A SHM-classic interface around a single SHM pool with allocation-algorithm services by boost....</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8hpp_source.html#l00148">pool_arena.hpp:151</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_a0811a47ce0b29b86514313a4c6976dc1"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a0811a47ce0b29b86514313a4c6976dc1">ipc::shm::classic::Pool_arena::Pool_arena</a></div><div class="ttdeci">Pool_arena(flow::log::Logger *logger_ptr, const Shared_name &amp;pool_name, util::Create_only mode_tag, size_t pool_sz, const util::Permissions &amp;perms=util::Permissions(), Error_code *err_code=0)</div><div class="ttdoc">Construct Pool_arena accessor object to non-existing named SHM pool, creating it first.</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00063">pool_arena.cpp:63</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_a394973b7cfb67b67113043810804337d"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a394973b7cfb67b67113043810804337d">ipc::shm::classic::Pool_arena::deallocate</a></div><div class="ttdeci">bool deallocate(void *buf_not_null) noexcept</div><div class="ttdoc">Undoes effects of local allocate() that returned buf_not_null; or another-process's allocate() that r...</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00132">pool_arena.cpp:132</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_a3a16fc7903eca88464d50fdf2873e37f"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a3a16fc7903eca88464d50fdf2873e37f">ipc::shm::classic::Pool_arena::m_pool</a></div><div class="ttdeci">boost::movelib::unique_ptr&lt; Pool &gt; m_pool</div><div class="ttdoc">Attached SHM pool. If ctor fails in non-throwing fashion then this remains null. Immutable after ctor...</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8hpp_source.html#l00603">pool_arena.hpp:603</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_a71009bb725b4cd68bea4ac99fa81ee2e"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a71009bb725b4cd68bea4ac99fa81ee2e">ipc::shm::classic::Pool_arena::m_pool_name</a></div><div class="ttdeci">const Shared_name m_pool_name</div><div class="ttdoc">SHM pool name as set immutably at construction.</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8hpp_source.html#l00489">pool_arena.hpp:489</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_a9da3a100a0b7199644edbadacc9083c9"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#a9da3a100a0b7199644edbadacc9083c9">ipc::shm::classic::Pool_arena::allocate</a></div><div class="ttdeci">void * allocate(size_t n)</div><div class="ttdoc">Allocates buffer of specified size, in bytes, in the accessed pool; returns locally-derefernceable ad...</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00102">pool_arena.cpp:102</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_aca8bf9fe738df70fd502111330089c90"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aca8bf9fe738df70fd502111330089c90">ipc::shm::classic::Pool_arena::~Pool_arena</a></div><div class="ttdeci">~Pool_arena()</div><div class="ttdoc">Destroys Pool_arena accessor object.</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00097">pool_arena.cpp:97</a></div></div>
<div class="ttc" id="aclassipc_1_1shm_1_1classic_1_1Pool__arena_html_aff2327ce7339c1c732ddd4fcd4861ee4"><div class="ttname"><a href="classipc_1_1shm_1_1classic_1_1Pool__arena.html#aff2327ce7339c1c732ddd4fcd4861ee4">ipc::shm::classic::Pool_arena::remove_persistent</a></div><div class="ttdeci">static void remove_persistent(flow::log::Logger *logger_ptr, const Shared_name &amp;name, Error_code *err_code=0)</div><div class="ttdoc">Removes the named SHM pool object.</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00164">pool_arena.cpp:164</a></div></div>
<div class="ttc" id="aclassipc_1_1util_1_1Shared__name_html"><div class="ttname"><a href="classipc_1_1util_1_1Shared__name.html">ipc::util::Shared_name</a></div><div class="ttdoc">String-wrapping abstraction representing a name uniquely distinguishing a kernel-persistent entity fr...</div><div class="ttdef"><b>Definition:</b> <a href="shared__name_8hpp_source.html#l00241">shared_name.hpp:242</a></div></div>
<div class="ttc" id="aclassipc_1_1util_1_1Shared__name_html_a0bccc73c9c5b4f3b784a1e57cdc5c910"><div class="ttname"><a href="classipc_1_1util_1_1Shared__name.html#a0bccc73c9c5b4f3b784a1e57cdc5c910">ipc::util::Shared_name::native_str</a></div><div class="ttdeci">const char * native_str() const</div><div class="ttdoc">Returns (sans copying) pointer to NUL-terminated wrapped name string, suitable to pass into sys calls...</div><div class="ttdef"><b>Definition:</b> <a href="shared__name_8cpp_source.html#l00145">shared_name.cpp:145</a></div></div>
<div class="ttc" id="adetail_2util__fwd_8hpp_html"><div class="ttname"><a href="detail_2util__fwd_8hpp.html">util_fwd.hpp</a></div></div>
<div class="ttc" id="aipc__shm_2src_2ipc_2shm_2classic_2error_8hpp_html"><div class="ttname"><a href="ipc__shm_2src_2ipc_2shm_2classic_2error_8hpp.html">error.hpp</a></div></div>
<div class="ttc" id="anamespaceipc_1_1shm_1_1classic_1_1error_html_ab01754e54c67d287addcf7a5c6ce999ba5640941b8dbafc13ad6f6ef8dec1937f"><div class="ttname"><a href="namespaceipc_1_1shm_1_1classic_1_1error.html#ab01754e54c67d287addcf7a5c6ce999ba5640941b8dbafc13ad6f6ef8dec1937f">ipc::shm::classic::error::Code::S_SHM_BIPC_MISC_LIBRARY_ERROR</a></div><div class="ttdeci">@ S_SHM_BIPC_MISC_LIBRARY_ERROR</div><div class="ttdoc">Low-level boost.ipc.shm: boost.interprocess emitted miscellaneous library exception sans a system cod...</div></div>
<div class="ttc" id="anamespaceipc_1_1shm_1_1classic_html"><div class="ttname"><a href="namespaceipc_1_1shm_1_1classic.html">ipc::shm::classic</a></div><div class="ttdoc">ipc::shm sub-module with the SHM-classic SHM-provider. See ipc::shm doc header for introduction.</div><div class="ttdef"><b>Definition:</b> <a href="shm_2classic_2classic__fwd_8hpp_source.html#l00025">classic_fwd.hpp:26</a></div></div>
<div class="ttc" id="anamespaceipc_1_1shm_1_1classic_html_a6df4cc12979524345f2bc6f98ad926f4"><div class="ttname"><a href="namespaceipc_1_1shm_1_1classic.html#a6df4cc12979524345f2bc6f98ad926f4">ipc::shm::classic::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const Pool_arena &amp;val)</div><div class="ttdoc">Prints string representation of the given Pool_arena to the given ostream.</div><div class="ttdef"><b>Definition:</b> <a href="pool__arena_8cpp_source.html#l00171">pool_arena.cpp:171</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a1b398ae730d1e6040687cb2397115152"><div class="ttname"><a href="namespaceipc_1_1util.html#a1b398ae730d1e6040687cb2397115152">ipc::util::Permissions</a></div><div class="ttdeci">bipc::permissions Permissions</div><div class="ttdoc">Short-hand for Unix (POSIX) permissions class.</div><div class="ttdef"><b>Definition:</b> <a href="util__fwd_8hpp_source.html#l00161">util_fwd.hpp:161</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a1cdc0a8d761170faa844c49d37c522ff"><div class="ttname"><a href="namespaceipc_1_1util.html#a1cdc0a8d761170faa844c49d37c522ff">ipc::util::remove_persistent_shm_pool</a></div><div class="ttdeci">void remove_persistent_shm_pool(flow::log::Logger *logger_ptr, const Shared_name &amp;pool_name, Error_code *err_code)</div><div class="ttdoc">Equivalent to shm::classic::Pool_arena::remove_persistent().</div><div class="ttdef"><b>Definition:</b> <a href="ipc__core_2src_2ipc_2util_2detail_2util_8cpp_source.html#l00119">util.cpp:119</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a3e03491b5b2b5fac26551a220946d6e5"><div class="ttname"><a href="namespaceipc_1_1util.html#a3e03491b5b2b5fac26551a220946d6e5">ipc::util::Open_only</a></div><div class="ttdeci">bipc::open_only_t Open_only</div><div class="ttdoc">Tag type indicating an ideally-atomic open-if-exists-else-fail operation.</div><div class="ttdef"><b>Definition:</b> <a href="util__fwd_8hpp_source.html#l00155">util_fwd.hpp:155</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a5664539b3d75d6d10cdfebf6eac5382d"><div class="ttname"><a href="namespaceipc_1_1util.html#a5664539b3d75d6d10cdfebf6eac5382d">ipc::util::OPEN_OR_CREATE</a></div><div class="ttdeci">const Open_or_create OPEN_OR_CREATE</div><div class="ttdoc">Tag value indicating an open-if-exists-else-create operation.</div><div class="ttdef"><b>Definition:</b> <a href="ipc__core_2src_2ipc_2util_2util_8cpp_source.html#l00030">util.cpp:30</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a6a3a6ec85242d073df96978c63464078"><div class="ttname"><a href="namespaceipc_1_1util.html#a6a3a6ec85242d073df96978c63464078">ipc::util::OPEN_ONLY</a></div><div class="ttdeci">const Open_only OPEN_ONLY</div><div class="ttdoc">Tag value indicating an atomic open-if-exists-else-fail operation.</div><div class="ttdef"><b>Definition:</b> <a href="ipc__core_2src_2ipc_2util_2util_8cpp_source.html#l00031">util.cpp:31</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a9571de958538d7a4a8649bbfecfac0b9"><div class="ttname"><a href="namespaceipc_1_1util.html#a9571de958538d7a4a8649bbfecfac0b9">ipc::util::Open_or_create</a></div><div class="ttdeci">bipc::open_or_create_t Open_or_create</div><div class="ttdoc">Tag type indicating an atomic open-if-exists-else-create operation.</div><div class="ttdef"><b>Definition:</b> <a href="util__fwd_8hpp_source.html#l00152">util_fwd.hpp:152</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_a9d84c2bab504e6de32b20c77ca9723a2"><div class="ttname"><a href="namespaceipc_1_1util.html#a9d84c2bab504e6de32b20c77ca9723a2">ipc::util::Create_only</a></div><div class="ttdeci">bipc::create_only_t Create_only</div><div class="ttdoc">Tag type indicating a create-unless-exists-else-fail operation.</div><div class="ttdef"><b>Definition:</b> <a href="util__fwd_8hpp_source.html#l00158">util_fwd.hpp:158</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_abd43da87aa17031604c7906757c07d46"><div class="ttname"><a href="namespaceipc_1_1util.html#abd43da87aa17031604c7906757c07d46">ipc::util::op_with_possible_bipc_exception</a></div><div class="ttdeci">void op_with_possible_bipc_exception(flow::log::Logger *logger_ptr, Error_code *err_code, const Error_code &amp;misc_bipc_lib_error, String_view context, const Func &amp;func)</div><div class="ttdoc">Internal (to ipc) utility that invokes the given function that invokes a boost.interprocess operation...</div><div class="ttdef"><b>Definition:</b> <a href="util_8hpp_source.html#l00034">util.hpp:34</a></div></div>
<div class="ttc" id="anamespaceipc_1_1util_html_ad1ca1cab79a35e1eb1c47037a0973cd8"><div class="ttname"><a href="namespaceipc_1_1util.html#ad1ca1cab79a35e1eb1c47037a0973cd8">ipc::util::CREATE_ONLY</a></div><div class="ttdeci">const Create_only CREATE_ONLY</div><div class="ttdoc">Tag value indicating an atomic create-unless-exists-else-fail operation.</div><div class="ttdef"><b>Definition:</b> <a href="ipc__core_2src_2ipc_2util_2util_8cpp_source.html#l00032">util.cpp:32</a></div></div>
<div class="ttc" id="anamespaceipc_html_a4ccdeed058222c635745a4dc830e99f7"><div class="ttname"><a href="namespaceipc.html#a4ccdeed058222c635745a4dc830e99f7">ipc::Log_component</a></div><div class="ttdeci">Log_component</div><div class="ttdoc">The flow::log::Component payload enumeration containing various log components used by Flow-IPC inter...</div><div class="ttdef"><b>Definition:</b> <a href="common_8hpp_source.html#l00322">common.hpp:323</a></div></div>
<div class="ttc" id="anamespaceipc_html_aa3192e586cc45d3e7c22463bf2760f89"><div class="ttname"><a href="namespaceipc.html#aa3192e586cc45d3e7c22463bf2760f89">ipc::Error_code</a></div><div class="ttdeci">flow::Error_code Error_code</div><div class="ttdoc">Short-hand for flow::Error_code which is very common.</div><div class="ttdef"><b>Definition:</b> <a href="common_8hpp_source.html#l00298">common.hpp:298</a></div></div>
<div class="ttc" id="apool__arena_8hpp_html"><div class="ttname"><a href="pool__arena_8hpp.html">pool_arena.hpp</a></div></div>
<div class="ttc" id="autil_8hpp_html"><div class="ttname"><a href="util_8hpp.html">util.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu May 2 2024 23:56:38 for Flow-IPC by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
